package cn.tedu.student;

import cn.tedu.student.StuConfig;
import cn.tedu.student.Student;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class StuTest {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(StuConfig.class);
        Student ss = ac.getBean("student",Student.class);
        System.out.println(ss);
    }

}
